<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/easyui/easyui.js"></script>
</head>
<body  >
<div class="easyui-panel"  data-options="title:'个人信息'" style="width:100%;height:170px;padding:4px;">
	<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'west',collapsible:false" style="width:300px;fit:true">
			<table border="0" width="100%">
					<tr>
			    		<td height="75" width="75"  rowspan="3" align="center">
			    			<img src="<%=request.getContextPath() %><s:property value="#session.operatorBean.optPicture"/>" height="50" width="50"/>
			    		</td>
			    		<td height="25" >&nbsp;操作员 : <s:property value="#session.operatorBean.optName"/></td>
			    	</tr>
			    	<tr>
			    		<td height="25">&nbsp;工号 : <s:property value="#session.operatorBean.optId"/></td>
			    	</tr>
			    	<tr>
			    		<td height="25">&nbsp;所属部门 : <s:action name="catalog_route"><s:param name="catNo" value="#session.operatorBean.catNo"></s:param></s:action></td>
			    	</tr>
			    	<tr>
			    		<td height="25" align="right">登录IP : </td>
			    		<td>&nbsp;<%=util.IpUtil.getAddress(request)%></td>
			    	</tr>
			    	<tr>
			    		<td height="25" align="right">登录时间 : </td>
			    		<td>&nbsp;<%=new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date()) %> </td>
			    	</tr>
			</table>
		</div>
		<div data-options="region:'center',collapsible:false"   style="overflow: hidden" >
			<s:action name="notice_view" executeResult="true"><s:param name="optId" value="#session.operatorBean.optId"></s:param></s:action>
		</div>
	</div>
</div>
<br/>
<div class="easyui-panel" data-options="title:'系统信息'" style="width:100%;height:auto;padding:4px;">
	<table class="easyui-datagrid" >
		<thead>  
	      <tr>  
	            <th field="th1" width="15%">名称</th>  
	            <th field="th2" width="15%">域名</th>  
	            <th field="th3" width="15%">Title</th>  
	            <th field="th4" width="15%">ICP</th>  
	            <th field="th5" width="15%">Email</th>  
	            <th field="th6" width="25%">关键字</th> 
	        </tr>                             
	    </thead>  
	    <tbody>
	    	<tr>
	    		<td><%=common.dict.WebsiteDict.CNNAME %></td>
	    		<td><%=common.dict.WebsiteDict.URL %></td>
	    		<td><%=common.dict.WebsiteDict.TITLE %></td>
	    		<td><%=common.dict.WebsiteDict.ICP %></td>
	    		<td><%=common.dict.WebsiteDict.EMAIL %></td>
	    		<td><%=common.dict.WebsiteDict.KEYWORD %></td>
	    	</tr>
	    </tbody>
	</table>
</div>
<br/>
<div class="easyui-panel" data-options="title:'环境信息'" style="width:100%;height:auto;padding:4px;">
	
	<table class="easyui-datagrid" >
		<thead>  
	      <tr>  
	            <th field="th1" width="15%">JDK版本号</th>  
	            <th field="th2" width="15%">运行时环境版本</th>  
	            <th field="th3" width="15%">虚拟机版本</th>  
	            <th field="th4" width="15%">类格式版本</th>  
	            <th field="th5" width="15%">操作系统</th>  
	            <th field="th6" width="25%">操作系统版本</th> 
	        </tr>                             
	    </thead>  
	    <tbody>
	    	<tr>
	    		<td><%=System.getProperty("java.specification.version") %></td>
	    		<td><%=System.getProperty("java.version") %></td>
	    		<td><%=System.getProperty("java.vm.version") %></td>
	    		<td><%=System.getProperty("java.class.version") %></td>
	    		<td><%=System.getProperty("os.name") %></td>
	    		<td><%=System.getProperty("os.version") %></td>
	    	</tr>
	    </tbody>
	</table>
</div>
	<br/>
	<%
		long total = Math.round((Runtime.getRuntime().totalMemory()) / (1024.0 * 1024));
		long max = Math.round((Runtime.getRuntime().maxMemory()) / (1024.0 * 1024));
		long free = Math.round((Runtime.getRuntime().freeMemory()) / (1024.0 * 1024));
	%>
<div class="easyui-panel" data-options="title:'数据信息'" style="width:100%;height:auto;padding:4px;">
	<table class="easyui-datagrid" >
		<thead>  
	      <tr>  
	            <th field="th1" width="15%">数据库</th>  
	            <th field="th2" width="15%">编码</th>  
	            <th field="th3" width="15%">版本</th>  
	            <th field="th4" width="15%">JVM的最大可用内存</th>  
	            <th field="th5" width="15%">JVM占用的内存总数</th>  
	            <th field="th6" width="25%">实际可用内存</th> 
	        </tr>                             
	    </thead>  
	    <tbody>
	    	<tr>
	    		<td>MYSQL</td>
	    		<td>UTF-8</td>
	    		<td>5.7</td>
	    		<td><%=max %> Mb</td>
	    		<td><%=total %> Mb</td>
	    		<td><%= (max - total + free) %> Mb</td>
	    	</tr>
	    </tbody>
	</table>
</div>
	<br/>
<div class="easyui-panel" data-options="title:'平台信息'" style="width:100%;height:auto;padding:4px;">
	
	<table class="easyui-datagrid" >
		<thead>  
	      <tr>  
	            <th field="th1" width="15%">操作员数</th>  
	            <th field="th2" width="15%">功能模块数</th>  
	            <th field="th3" width="15%">当前用户</th>  
	            <th field="th4" width="15%">工作目录</th>  
	            <th field="th5" width="15%">临时目录</th>  
	            <th field="th6" width="25%">其他</th> 
	        </tr>                             
	    </thead>  
	    <tbody>
	    	<tr>
	    		<td><s:property value="operatorCount"/></td>
	    		<td><s:property value="functionCount"/></td>
	    		<td><%=System.getProperty("user.name") %></td>
	    		<td><%=System.getProperty("user.dir") %></td>
	    		<td><%=System.getProperty("java.io.tmpdir") %></td>
	    		<td>无</td>
	    	</tr>
	    </tbody>
	</table>
</div>
</body>
</html>
